<?php


namespace Part26_SharingElementMode\Code4;


class ConcreteWebsite extends WebSite
{
    private $name = '';

    public function __construct($name)
    {
        $this->name = $name;
    }

    public function use($user)
    {
        echo "网站分类{$this->name},用户{$user->getName()}\n";
    }
}